<?php
namespace app\work\logic;
use app\work\validate\WorkRecordXt as WorkRecordXtValidate;

class XtLogic extends BaseLogic {

    /**
     * 检查新增内部协同规则
     * @param $params
     * @return mixed
     */
    public function check_add_xt_rule($params){
        $validate = new WorkRecordXtValidate();
        $r = $validate->scene('add')->check($params);
        if(!$r){
            return $this->get_response(0,$validate->getError());
        }
        return $this->get_response(1,'OK');
    }
}